#include "EItemMetaProperty.h"
#include "EItemMeta.h"

//TODO: if m_funSetProperty==null, then the owner's value will not be set, how to handle this problem?
void EItemMetaProperty::setPropertyValue(const EVariant& value)
{
    this->value = value;
    if(this->m_funSetProperty != NULL)
    {
        this->m_funSetProperty(this->m_owner, this->value);
    }
    
}

void EItemMetaProperty::getPropertyValue(EVariant& value)
{
    if(this->m_funGetProperty != NULL)
    {
        this->m_funGetProperty(this->m_owner, this->value);
    }

    value = this->value;
}

long EItemMetaProperty::getTag()
{
    return (long)this;
}
